<template>
  <div class="item">
    <div v-show="item.url" class="img-wrap">
      <img :src="item.url" alt="">
    </div>
    <div>题目：{{item.question}}</div>
    <div class="answer">答案：{{item.answer}}</div>
    <div class="explains">解析：<span v-html="item.explains"></span></div>
  </div>
</template>
<script>
export default {
  name: 'wrongItem',
  props: {
    item: Object
  }
}
</script>
<style lang="less" scoped>
.item {
  padding: 15px 14px 8px;
  font-size: 14px;
  border-bottom: 1px solid #ccc;
}
.explains {
  color: #de6978;
}
.answer {
  color: #21e76d;
}
.img-wrap {
  text-align: center;
  img {
    display: inline-block;
    width: 180px;
    height: 100px;
  }
}
</style>
